عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.
The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.